<include file="__THEME__/header" />
<link href="../Public/css/space.css" rel="stylesheet" type="text/css" />
<div class="contents lbg B">
  <!--左边信息 begin-->
  <include file="../Public/home_left" />
  <!--中间信息 begi-->
  <div class="contents_min w787">
    <h3 class="tit_h3">{:L('feed')}</h3>
    <div class="list_cate_nav mt20">
    <div class="tab" >
      <!-- 切换标签 begin  -->
      <ul rel="tab">
        <li 
        <eq name="type" value="attention">class="on"</eq>
        > <span ><a href="{:U('home/message/feed','type=attention')}">{:L('my_following')}</a></span>
        </li>
        <li 
        <eq name="type" value="all">class="on"</eq>
        > <span ><a href="{:U('home/message/feed','type=all')}">{:L('all_feed')}</a></span>
        </li>
		<php>if( $space['group']['list'] ){</php>
        <li <eq name="type" value="group">class="on"</eq> condition="group" style="position:relative;">
        	<div class="group_new" id="group_new" onmouseout="this.className='group_new'" onmouseover="this.className='group_new_over'">
            <span style="padding-right:10px; "><a href="{:U('home/message/feed','type=group')}">{:L('group_feed')}</a></span>
            	<div class="box">
            		<volist id="vo" name="space['group']['list']">
                		<a href="{:U('home/message/feed',array('type'=>'group','fid'=>$vo['gid']))}" style="display: block;">{$vo.name}</a>
					</volist>
                </div>
            </div>
        </li>		
		<php>}</php>
      </ul>
    </div>
    <div>
      <div class="sidebar_R">
        <dl class="FSort mt20">
          <dt>{:L('view')}</dt>
          <php>$spage=($_GET['p'])?'&p='.$_GET['p']:''</php>
          <dd 
          
          <eq name="d" value="">class="ic"</eq>
          ><a href="{:U('home/message/feed',array('type'=>$type))}{$spage}">{:L('all')}</a>
          </dd>
          <dd 
          
          <eq name="d" value="today">class="ic"</eq>
          ><a href="{:U('home/message/feed',array('type'=>$type,'d'=>'today'))}{$spage}">{:L('daily')}</a>
          </dd>
          <dd 
          
          <eq name="d" value="weekday">class="ic"</eq>
          ><a href="{:U('home/message/feed',array('type'=>$type,'d'=>'weekday'))}{$spage}">{:L('weekly')}</a>
          </dd>
          <dd 
          
          <eq name="d" value="month">class="ic"</eq>
          ><a href="{:U('home/message/feed',array('type'=>$type,'d'=>'month'))}{$spage}">{:L('monthly')}</a>
          </dd>
        </dl>
      </div>
      <div class="FList" id="feed_list_content">
        <ul>
          <volist id="vo" name="space['feeds']['data']">
            <li class="Fli" id="feed_{$vo.id}">
              <div class="headpic50 L"><a href="{:U('space/View/index',array('uid'=>$vo['uid']))}"><img src="{$vo.uid|getUserFace='s'}" width="50"/></a></div>
              <div class="LC">
                <div ><a style="margin: 4px 0pt 0pt;" class="del" href="javascript:void(0)" onclick="ignoreFeed({$vo.id})">{:L('delete')}</a> <em class="R cl06 pr5 pl20">{$vo.cTime|friendLydate}</em>{$vo.title}</div>
                {$vo.body}
                <php>if($vo['comment']){</php>
                <div id="reply_list_{$vo.id}" class="rc">{$vo.comment}</div>
                <php>}</php>
              </div>
              <div class="C"></div>
            </li>
          </volist>
        </ul>
        <div class="page mt5 alR mb20">{$space['feeds']['html']}</div>
      </div>
    </div>
</div>
  </div>
  <div class="C"></div>
</div>
<script>
	//忽略动态
	function ignoreFeed(id){
		$.post("{:U('home/User/ignoreFeed')}",{id:id},function(txt){
			if(txt){
				//$("#feed_"+id).css('border','solid 1px red');
				$("#feed_"+id).slideUp("normal",function(){
					$(this).remove();
				});
			}else{
				alert("{:L('ignore_failed')}");
			}
		});
	}
</script>
<include file="__THEME__/footer" /> 